package com.traffic.trafficCar;

import com.traffic.entity.TrafficCar;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface TrafficCarService {
	
	void addTraffic(TrafficCar trafficCar);
	void updateTraffic(TrafficCar trafficCar);
	void delTraffic(Long id);
	public Page<TrafficCar> findTrafficCar(Pageable page);

	public Page<TrafficCar> findAllByLineOrCar(String line,String car,Pageable page);

	/**
	 * 根据主键查询
	 *
	 * @param id
	 * @return
	 */
	TrafficCar get(Long id);

}
